<?php
namespace Admin\Controller;



class IndexController extends BaseController {
    
    public function index(){
       if ($this->login()){
            
            $this->display();
       }
    }
    
    
    //后台首页
    public function index_v148b2(){
        if ($this->login()){
            $this->display();
        }
    }
 

    //清除缓存
    
    public function del_cache() {
        header("Content-type: text/html; charset=utf-8");
        //清文件缓存
        $dirs = array('./Runtime/');
        @mkdir('Runtime',0777,true);
        //清理缓存
        foreach($dirs as $value) {
            $this->rmdirr($value);
        }
        $this->success('系统缓存清除成功！');

    }
    
    
    
    
    
    
    
    
    
    
}